package com.lzs.chuku.feign;

import com.lzs.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author 小刘先生
 * @date 2020/11/26 18:33
 */
@FeignClient(value = "kunei-kuncun-service")
public interface KucunFeign {
    @PostMapping("/kucun/stock/updateQuantity")
    public R updateQuantity(@RequestParam("locatorid") Long locatorid, @RequestParam("commodityid") Long commoditybid, @RequestParam("warehouseid") Long warehouseid, @RequestParam("qty") Integer qty);

    @PostMapping("/kucun/stock/updateRealQuantity")
    public R updateRealQuantity(@RequestParam("locatorid") Long locatorid, @RequestParam("commodityid") Long commoditybid, @RequestParam("warehouseid") Long warehouseid, @RequestParam("qty") Integer qty);

    @PostMapping("/kucun/stock/updateRealQuantity2")
    public R updateRealQuantity2(@RequestParam("locatorid") Long locatorid, @RequestParam("commodityid") Long commoditybid, @RequestParam("warehouseid") Long warehouseid, @RequestParam("qty") Integer qty);
}
